<?php
class	AppController extends Controller
{
	var $components = array('Auth');

	function beforeFilter(){
		$this->Auth->authError = "Merci de vous identifier";
		$this->Auth->loginError = "T'es mauvais !";
		$this->Auth->loginRedirect = '/users/edit';
		$this->Auth->fields = array(
			"username" => "mail",
			"password" => "password"
		);
	}
}
?>